package com.dayuanit.hotal;

import java.util.List;

public class Test {
    public static void main(String[] args) {
        //要有人 要有餐馆

        Person tom = new Person("tom", 2500);
        Person bob = new Person("bob", 100);

        Restaurant restaurant = new Restaurant("楚留香饭馆");

        //tom点餐
        restaurant.orderFood(tom, new OrderDetail(1000, 100));
        restaurant.orderFood(tom, new OrderDetail(1001, 10));
        restaurant.orderFood(tom, new OrderDetail(1002, 20));

        //bob点餐
        restaurant.orderFood(bob, new OrderDetail(1002, 2));

        //tom结算
        restaurant.settlement(tom);
    }
}
